package designpattern.singleton;

public class DCLSingleton {

	private static volatile DCLSingleton dclSingleton = null;
	
	private DCLSingleton() {
		
	}
	
	public DCLSingleton getInstance() {
		if(dclSingleton == null) {
			synchronized (DCLSingleton.class) {
				if(dclSingleton == null) {
					dclSingleton = new DCLSingleton();
				}
			}
		}
		
		return dclSingleton;
	}
}
